use integration_test::sum;

mod common;

use common::{setup, teardown};

#[test]
fn sum_test() {
    assert_eq!(sum(6, 8), 14);
}

// cargo test test_with_fixture -- --nocapture 加入此参数这样才能看到测试的println信息
#[test]
fn test_with_fixture() {
    setup();
    assert_eq!(sum(7, 14), 21);
    teardown();
}